/**
 * 工资项维护
 */
import Layout from '@/layout'

const salaryConfigManage = {
  path: '/salaryConfigManage',
  component: Layout,
  redirect: '/salaryConfigManage/salaryProjectMaintenance',
  name: 'salaryConfigManage',
  meta: {
    title: '工资配置管理',
    icon: 'el-icon-s-flag',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'salaryProjectMaintenance',
      component: () => import('@/views/salaryConfigManage/salaryProjectMaintenance'),
      name: 'salaryProjectMaintenance',
      meta: {
        title: '工资项目维护',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'salaryProjectConnect',
      component: () => import('@/views/salaryConfigManage/salaryProjectConnect'),
      name: 'salaryProjectConnect',
      meta: {
        title: '工资项目挂接',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'personTypeConnectSalary',
      component: () => import('@/views/salaryConfigManage/personTypeConnectSalary'),
      name: 'personTypeConnectSalary',
      meta: {
        title: '人员类型挂工资项目',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'salaryStandardMaintenance',
      component: () => import('@/views/salaryConfigManage/salaryStandardMaintenance'),
      name: 'salaryStandardMaintenance',
      meta: {
        title: '工资标准维护（开发中）',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'connectIndex',
      component: () => import('@/views/salaryConfigManage/connectIndex'),
      name: 'connectIndex',
      meta: {
        title: '挂接指标（开发中）',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'connectIndexRule',
      component: () => import('@/views/salaryConfigManage/connectIndexRule'),
      name: 'connectIndexRule',
      meta: {
        title: '挂接指标（规则）（开发中）',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'formulaManage',
      component: () => import('@/views/salaryConfigManage/formulaManage'),
      name: 'formulaManage',
      meta: {
        title: '公式管理',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'submitTimeControl',
      component: () => import('@/views/salaryConfigManage/submitTimeControl'),
      name: 'submitTimeControl',
      meta: {
        title: '上报时间控制（开发中）',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'operrateLogs',
      component: () => import('@/views/salaryConfigManage/operrateLogs'),
      name: 'operrateLogs',
      meta: {
        title: '操作日志',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'salaryTypeBaseData',
      component: () => import('@/views/salaryConfigManage/salaryTypeBaseData'),
      name: 'salaryTypeBaseData',
      meta: {
        title: '人员工资类型配置',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'notInPayMent',
      component: () => import('@/views/salaryConfigManage/notInPayMent'),
      name: 'notInPayMent',
      meta: {
        title: '指标过滤规则配置',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    }
  ]
}

export default salaryConfigManage
